package com.google.code.chaotic.rpc;

import java.util.List;

import com.google.code.chaotic.dto.CommuterDto;
import com.google.code.chaotic.dto.LatLonDto;
import com.google.code.chaotic.shared.AuthException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("commuter")
public interface CommuterSvc extends RemoteService {

	public String createCommuter(String sessionId, CommuterDto dto)
			throws AuthException;

	public void updateCommuter(String sessionId, CommuterDto dto,
			boolean updatePass) //
			throws AuthException;

	public void deleteCommuter(String sessionId, String id)
			throws AuthException;

	// TODO: Must be removed before roll-out
	public List<CommuterDto> listCommuters(String sessionId)
			throws AuthException;

	// TODO: Must be removed before roll-out
	public List<LatLonDto> listAllHabitOrigins(String sessionId)
			throws AuthException;

	// TODO: Must be removed before roll-out
	public List<LatLonDto> listAllHabitDestinations(String sessionId)
			throws AuthException;
}